﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Secure/Secure.Master" AutoEventWireup="true" CodeBehind="MapView.aspx.cs" Inherits="Site.Secure.MapView" %>
<%@ Register assembly="Artem.Google" namespace="Artem.Google.UI" tagprefix="artem" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <h1>Map View</h1>
<a>This page allows you to view the data based on geographic location.</a>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<h2>Map Data View</h2>
<div>
    <a>There are currently 
        <asp:Label ID="lblMarkers" runat="server" Text="0 "></asp:Label> markers plotted</a>
    <artem:GoogleMap runat="server" EnableScrollWheelZoom="True" 
        Height="680px" Latitude="28.00325" Longitude="21.25874" MapType="Hybrid" 
        Width="1020px" ID="gmHives" EnableRotateControl="True" Tilt="0">       
        <Center Latitude="28.00325" Longitude="21.25874" />
        <MapTypeControlOptions Position="TopRight" ViewStyle="HorizontalBar" />
        <OverviewMapControlOptions Opened="False" />
        <PanControlOptions Position="TopLeft" />
        <RotateControlOptions Position="TopLeft" />
        <ScaleControlOptions Position="TopLeft" Style="Default" />
      
    </artem:GoogleMap>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:csMain %>" 
        SelectCommand="SELECT DISTINCT Barcode, SiteID, GPS FROM DataTable">
    </asp:SqlDataSource>
    
</div>
<div>
    <h3 class="queryLbl" style="cursor:default;">Query Tools</h3>
    <div class="queryDiv">
    <a>Find<asp:DropDownList ID="DropDownList1" runat="server">
        <asp:ListItem>Barcode</asp:ListItem>
            <asp:ListItem>Problems</asp:ListItem>
    </asp:DropDownList>
     that equals <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:Button ID="Button1"
         runat="server" Text="Find" onclick="Button1_Click" /></a>
    <br />
    <a>Find<asp:DropDownList ID="DropDownList2" runat="server">
        <asp:ListItem>Barcode</asp:ListItem>
    </asp:DropDownList>
     that is between 
        <asp:TextBox ID="edtB1" runat="server"></asp:TextBox> and 
        <asp:TextBox ID="edtB2" runat="server"></asp:TextBox>
    <asp:Button ID="Button2"
            runat="server" Text="Find" onclick="Button2_Click" /></a>
    <br />
    <a>Find using SQL<asp:TextBox ID="TextBox2" runat="server" 
        Text="SELECT * FROM Database WHERE" Enabled="False" Width="223px"></asp:TextBox>
    <asp:TextBox ID="TextBox3" runat="server" Width="287px"></asp:TextBox>
    <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Find" />
    </a>
        <br />
        <asp:ListBox ID="ListBox1" runat="server" Height="393px" Width="669px">
        </asp:ListBox>
        <br />
    </div>
</div>

</asp:Content>
